import baseApi from './baseApi'

export default {
  findForce(parms) {
    return baseApi.getApi('/force/find', parms);
  },
  getForce(id) {
    return baseApi.getUrlApi('/force/get', id);
  },
  deleteForce(ids) {
    return baseApi.getUrlApi('/force/deletes', ids);
  },
  saveForce(jsonParms) {
    return baseApi.postApi('/force/save', jsonParms);
  },
  saveRootMenu(jsonParms) {
    return baseApi.postApi('/force/saveRootMenu', jsonParms);
  },
  saveSonMenu(jsonParms) {
    return baseApi.postApi('/force/saveSonMenu', jsonParms);
  },
  saveForceMenu(jsonParms) {
    return baseApi.postApi('/force/saveForceMenu', jsonParms);
  },
  tree(){
  	return baseApi.getApi('/force/tree');
  }
}